package edu.buu.refectory.dao;

import java.util.List;
import java.util.Map;

import edu.buu.refectory.annotation.MyBatisRepository;
import edu.buu.refectory.domain.Refectory;

@MyBatisRepository
public interface RefectoryMapper {
    int deleteByPrimaryKey(Integer rId);

    int insert(Refectory record);

    int insertSelective(Refectory record);

    Refectory selectByPrimaryKey(Integer rId);

    int updateByPrimaryKeySelective(Refectory record);

    int updateByPrimaryKey(Refectory record);

	/**
	 * @param username
	 * @return
	 */
	List<Refectory> getByUsername(String username);

	/**
	 * @param map
	 * @return
	 */
	List<Refectory> getList(Map<String, Object> map);
}